package org.sjs.dreamfly.data

import com.google.android.gms.common.util.JsonUtils
import com.squareup.moshi.Json
import org.sjs.dreamfly.model.VideoInfo
import org.sjs.dreamfly.common.util.JsonUtil

@Deprecated("去掉此类封装")
private class SiteDataProvider : DataCenter.DataProvider {

    private var playList : List<VideoInfo>? = null

    fun getPlayList(): List<VideoInfo>? {
        return playList
    }

    fun setPlayList(params: String) {
        playList = JsonUtil.fromJson<List<VideoInfo>>(params)
    }

    fun setPlayList(list: List<VideoInfo>) {
        playList = list
    }
}